package com.ruoyi.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;

/**
 * 商品分类对象 product_category
 *
 * @author ruoyi
 * @date 2024-07-26
 */
public class ProductCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 分类图标 */
    @Excel(name = "分类图标")
    private String icons;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 是否删除,1:未删除,0:已删除 */
    @Excel(name = "是否删除,1:未删除,0:已删除")
    private Long isDelete;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setIcons(String icons)
    {
        this.icons = icons;
    }

    public String getIcons()
    {
        return icons;
    }
    public void setSort(String sort)
    {
        this.sort = sort;
    }

    public String getSort()
    {
        return sort;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("icons", getIcons())
                .append("sort", getSort())
                .append("status", getStatus())
                .append("parentId", getParentId())
                .append("isDelete", getIsDelete())
                .toString();
    }
}
